<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>NewInterFace</title>
<link rel="stylesheet" type="text/css" href="${ctxStatic }/newInterFace/css/style.css"/>

<script type="text/javascript" src="${ctxStatic }/newInterFace/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">


   function sub1(){
	   
	  
	 var str=$("#search").val();
	 var newstr=$.trim(str);
	  console.log(str);
	/*   if(newstr.length==0){
		  alert("请不要输入空值");
	  }else{ */
		 
		  
		  var src="../baseData/projectlist";
		   console.log(src);
		  $("#searchForm").attr("action",src);
		  $("#searchForm").submit();  
	/*   } */
	  
   }
	
   function sub2(){
	   
		  
		  var str=$("#search").val();
		  
	  var newstr=$.trim(str);
		
			  var src="../baseData/productlist";  
			   console.log(src);
			  $("#searchForm").attr("action",src);
			  $("#searchForm").submit();
		  
		 
	   }
 

</script>

</script>

<style type="text/css">

a {
	text-decoration: none;
	color: #AAAAAA;
}

a:hover {
	cursor: pointer;
	text-decoration: underline;
}

</style>

</head>
<body style="background:  url(${ctxStatic }/newInterFace/img/temp1.jpg) no-repeat center 50%;">


<!-- 中英文切换 -->
	
	<div > 
	 
	 <a href="../baseData/enInterFace" style="margin-left: 1800px;">中文 (Chinese)&nbsp;》》English(英文)</a>
	 
	 </div>

 <div  style="margin-left: 800px;margin-top: 45px;" >
      
       <img  width="300px;" height="150px;"  alt="LOGO" src="${ctxStatic }/newInterFace/img/1.jpg">
      
      </div>
		
		<div >
			<div class="panel">
				<div class="wrap">
				<form action="#" id="searchForm" method="post">
				
					<input type="text" placeholder="请输入要查询的内容" id="search" name="search"/>
					 <button onclick="sub1()">搜索项目</button> 
					 <button onclick="sub2()">搜索产品</button> 
					<!-- <input type="submit" value="搜索产品"> -->
					</form>
					
				</div>
			</div>
			
			
			
		</div>
	</body>
</html>